﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainSite.Master" AutoEventWireup="true" CodeBehind="EvaluateEmployees.aspx.cs" Inherits="BSCMFF.Web.Pages.Evaluation_Setup.EvaluateEmployees" %>


<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<bsc:EvaluationSelection ID="EvalSelection" runat="server" OnEvaluationSelectedIndexChanged="EvaluationSelectedIndexChanged" >
</bsc:EvaluationSelection>


<br /><br />
<asp:Label ID="Label1" runat="server" Text="Evaluations waiting for Interview" ></asp:Label>
<br />
    <telerik:RadGrid ID="RadGridInterviewNeeded" runat="server" 
        AutoGenerateColumns="false" onitemcommand="RadGridInterviewNeeded_ItemCommand"
        >        
        <MasterTableView DataKeyNames="ID">
            <Columns>        
                <%--<telerik:GridBoundColumn DataField="CurrentEvaluationID" Visible="false"
                    FilterControlAltText="Filter CurrentEvaluationID column" HeaderText="CurrentEvaluationID" 
                    SortExpression="CurrentEvaluationID" UniqueName="CurrentEvaluationID">
                </telerik:GridBoundColumn>               --%>
                <telerik:GridBoundColumn DataField="ID" Visible="false"
                    FilterControlAltText="Filter ID column" HeaderText="ID" 
                    SortExpression="ID" UniqueName="ID">
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="User.Firstname" 
                    FilterControlAltText="Filter Firstname column" HeaderText="Firstname" 
                    SortExpression="User.Firstname" UniqueName="Firstname">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="User.Lastname" 
                    FilterControlAltText="Filter Lastname column" HeaderText="Lastname" 
                    SortExpression="User.Lastname" UniqueName="Lastname">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="User.Email" 
                    FilterControlAltText="Filter Email column" HeaderText="Email" 
                    SortExpression="User.Email" UniqueName="Email">
                </telerik:GridBoundColumn>
                    
                    
                <telerik:GridBoundColumn DataField="User.EmployeeID" 
                    FilterControlAltText="Filter EmployeeID column" HeaderText="EmployeeID" 
                    SortExpression="User.EmployeeID" UniqueName="EmployeeID">
                </telerik:GridBoundColumn>
                    
                <telerik:GridBoundColumn DataField="SBU.Name" HeaderText="SBU" 
                    SortExpression="SBU.Name" UniqueName="SBU.Name">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="User.Job_Position" 
                    FilterControlAltText="Filter Job_Position column" HeaderText="Job_Position" 
                    SortExpression="User.Job_Position" UniqueName="Job_Position">
                </telerik:GridBoundColumn>

               <%-- <telerik:GridBoundColumn DataField="Evaluation_Evaluator_Employee.First().Filled" 
                    FilterControlAltText="Filter Evaluated column" HeaderText="Evaluated" 
                    SortExpression="Evaluation_Evaluator_Employee.First().Filled" UniqueName="Evaluated">
                </telerik:GridBoundColumn>--%>

                <telerik:GridButtonColumn CommandName="Select" Text="Start Interview" 
                    UniqueName="column">
                </telerik:GridButtonColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

<br /><br />
<asp:Label ID="LabelToEvaluate" runat="server" Text="Employees Not Evaluated yet" ></asp:Label>
<br />
    <telerik:RadGrid ID="RadGridNotEvaluatedEmployees" runat="server" 
        AutoGenerateColumns="false" onitemcommand="RadGridNotEvaluatedEmployees_ItemCommand"
        >
        
        <MasterTableView DataKeyNames="ID">
            <Columns>        
                <telerik:GridBoundColumn DataField="ID" Visible="false"
                    FilterControlAltText="Filter ID column" HeaderText="ID" 
                    SortExpression="ID" UniqueName="ID">
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="User.Firstname" 
                    FilterControlAltText="Filter Firstname column" HeaderText="Firstname" 
                    SortExpression="User.Firstname" UniqueName="Firstname">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="User.Lastname" 
                    FilterControlAltText="Filter Lastname column" HeaderText="Lastname" 
                    SortExpression="User.Lastname" UniqueName="Lastname">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="User.Email" 
                    FilterControlAltText="Filter Email column" HeaderText="Email" 
                    SortExpression="User.Email" UniqueName="Email">
                </telerik:GridBoundColumn>
                    
                    
                <telerik:GridBoundColumn DataField="User.EmployeeID" 
                    FilterControlAltText="Filter EmployeeID column" HeaderText="EmployeeID" 
                    SortExpression="User.EmployeeID" UniqueName="EmployeeID">
                </telerik:GridBoundColumn>
                    
                <telerik:GridBoundColumn DataField="SBU.Name" HeaderText="SBU" 
                    SortExpression="SBU.Name" UniqueName="SBU.Name">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="User.Job_Position" 
                    FilterControlAltText="Filter Job_Position column" HeaderText="Job_Position" 
                    SortExpression="User.Job_Position" UniqueName="Job_Position">
                </telerik:GridBoundColumn>

                <telerik:GridBoundColumn DataField="DateFilled" DataFormatString="{0:d}"
                    FilterControlAltText="Filter Filled column" HeaderText="Date Interviewed" 
                    SortExpression="DateFilled" UniqueName="Filled">
                </telerik:GridBoundColumn>

                <telerik:GridButtonColumn CommandName="Select" Text="Evaluate" 
                    UniqueName="column">
                </telerik:GridButtonColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

<br /><br />
<asp:Label ID="LabelAlreadyEvaluated" runat="server" Text="Employees Already Evaluated" ></asp:Label>
<br />

<telerik:RadGrid ID="RadGridEvaluatedEmployees" runat="server" 
        AutoGenerateColumns="false" 
        onitemcommand="RadGridEvaluatedEmployees_ItemCommand" 
        onitemdatabound="RadGridEvaluatedEmployees_ItemDataBound">
    <MasterTableView DataKeyNames="ID">
        <Columns>      
            <telerik:GridBoundColumn DataField="ID" Visible="false"
                    FilterControlAltText="Filter ID column" HeaderText="ID" 
                    SortExpression="ID" UniqueName="ID">
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="User.Firstname" 
                    FilterControlAltText="Filter Firstname column" HeaderText="Firstname" 
                    SortExpression="User.Firstname" UniqueName="Firstname">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="User.Lastname" 
                    FilterControlAltText="Filter Lastname column" HeaderText="Lastname" 
                    SortExpression="User.Lastname" UniqueName="Lastname">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="User.Email" 
                    FilterControlAltText="Filter Email column" HeaderText="Email" 
                    SortExpression="User.Email" UniqueName="Email">
                </telerik:GridBoundColumn>
                    
                    
                <telerik:GridBoundColumn DataField="User.EmployeeID" 
                    FilterControlAltText="Filter EmployeeID column" HeaderText="EmployeeID" 
                    SortExpression="User.EmployeeID" UniqueName="EmployeeID">
                </telerik:GridBoundColumn>
                    
                <telerik:GridBoundColumn DataField="SBU.Name" HeaderText="SBU" 
                    SortExpression="SBU.Name" UniqueName="SBU.Name">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="User.Job_Position" 
                    FilterControlAltText="Filter Job_Position column" HeaderText="Job_Position" 
                    SortExpression="User.Job_Position" UniqueName="Job_Position">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="DateFilled" DataFormatString="{0:d}"
                    FilterControlAltText="Filter Filled column" HeaderText="Date Interviewed" 
                    SortExpression="DateFilled" UniqueName="Filled">
                </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="DateEvaluated" DataType="System.DateTime" DataFormatString="{0:d}" 
                FilterControlAltText="Filter CurrentDateFilled column" HeaderText="Date Evaluated" 
                SortExpression="CurrentEEE.DateEvaluated" UniqueName="CurrentDateFilled">
            </telerik:GridBoundColumn>

            <%-- <telerik:GridBoundColumn DataField="Evaluation_Evaluator_Employee.First().Filled" 
                FilterControlAltText="Filter Evaluated column" HeaderText="Evaluated" 
                SortExpression="Evaluation_Evaluator_Employee.First().Filled" UniqueName="Evaluated">
            </telerik:GridBoundColumn>--%>

            <telerik:GridButtonColumn CommandName="Select" Text="Show" 
                UniqueName="column">
            </telerik:GridButtonColumn>
            <telerik:GridButtonColumn CommandName="Edit" Text="Edit" 
                UniqueName="column">
            </telerik:GridButtonColumn>
            <%--<telerik:GridButtonColumn CommandName="Delete" Text="Delete" 
                UniqueName="column">
            </telerik:GridButtonColumn>--%>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
</asp:Content>
